import request from '@/utils/request'

// 查询医生信息列表
export function listDocterlist(query) {
  return request({
    url: '/docters/docterlist/list',
    method: 'get',
    params: query
  })
}

// 查询未绑定医生信息
export function getDoctorList(query) {
  return request({
    url: '/docters/docterlist/docterlist',
    method: 'get'
  })
}

// 查询医生信息详细
export function getDocterlist(docterId) {
  return request({
    url: '/docters/docterlist/' + docterId,
    method: 'get'
  })
}

// 新增医生信息
export function addDocterlist(data) {
  return request({
    url: '/docters/docterlist',
    method: 'post',
    data: data
  })
}

// 修改医生信息
export function updateDocterlist(data) {
  return request({
    url: '/docters/docterlist',
    method: 'put',
    data: data
  })
}

// 删除医生信息
export function delDocterlist(docterId) {
  return request({
    url: '/docters/docterlist/' + docterId,
    method: 'delete'
  })
}

// 医生账号注册
export function register(data) {
  return request({
    url: "/auth/register",
    method: "post",
    data: data,
  });
}
